UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

All home directories must be owned by the respective user assigned to it in /etc/passwd.


Overview

Finding ID Version Rule ID IA Controls Severity
V-48097 SOL-11.1-070090 SV-60969r1_rule Medium
Description
Since the user is accountable for files stored in the user's home directory, the user must be the owner of the directory.
STIG Date
Solaris 11 SPARC Security Technical Implementation Guide 2015-06-26

Details

Check Text ( C-50529r4_chk )
The root role is required.

Check that home directories are owned by the correct user.

# export IFS=":"; logins -uxo | while read user uid group gid gecos home rest; do result=$(find ${home} -type d -prune \! -user $user -print 2>/dev/null);
if [ ! -z "${result}" ]; then
echo "User: ${user}\tOwner: $(ls -ld $home | awk '{ print $3 }')";
fi;
done

If the output is not:
User: nobody Owner: root
User: noaccess Owner: root
User: nobody4 Owner: root

this is a finding.
Fix Text (F-51705r1_fix)
The root role is required.

Correct the owner of any directory that does not match the password file entry for that user.

# chown [user] [home directory]